package com.wd.live.module_base.room

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query

/**
 * 作者: 王晶晶
 * 时间:2024/5/29
 * 描述:
 */
@Dao
interface  RoomDao {
    //查询
    @Query("select * from historybean")
    fun query(): List<HistoryBean?>?
    //添加
    @Insert
    fun add(listBean: HistoryBean?)
    //根据id删除
    @Query("delete from HistoryBean where content=:content")
    fun deleteByS(content: String?)
    //删除全部
    @Query("delete from historybean")
    fun delete()
}